import React, { useEffect,useState } from 'react';
function Example3(){
    const[count,setCount]=useState(0)
    useEffect(()=>{
        console.log(`number${count}`)
    })
    return(
        <div>
            <p>You click {count} times</p>
            <button onClick={()=>{setCount(count+1)}}>Click me</button>
        </div>
    )
}
export default Example3;